package com.foreverwin.jzymes.common.service;

import com.foreverwin.jzymes.common.domain.SfcBatchPassLog;
import com.foreverwin.jzymes.production.sfc.domain.SFC;

import java.util.Date;
import java.util.List;

public interface ISfcBatchPassLogAdviceService {

    /**
     * 查询工令打开状态批次过站记录
     *
     * @param site
     * @param sfc
     * @param resource
     * @return
     */
    public SfcBatchPassLog findOpenSfcBatchPassLog(String site, String sfc, String resource, String operation );

    /**
     * 查询打开状态批次过站记录
     *
     * @param site
     * @param itemBo
     * @param resource
     * @return
     */
    public SfcBatchPassLog findOpenSfcBatchPassLogListByOperation(String site, String itemBo, String resource );

    /**
     * 保存工令批次过站记录
     *
     * @param sfc
     * @param resource
     * @param passQty
     * @param passDate
     */
    public void saveSfcBatchPass( String site, String sfc, String itemBo, String resource, Long passQty, Date passDate );

    /**
     * 保存工令批次过站记录
     *
     * @param sfc
     * @param resource
     * @param passQty
     * @param passDate
     */
    public void saveSfcBatchPass( String site, String sfc, String itemBo, String resource, String operation, Long passQty, Date passDate );


    public void updateSfcBatchPassLog( SfcBatchPassLog sfcBatchPassLog, Long qty, Date date );

    public void insertSfcBatchPassLog( String site, String sfc, String itemBo, String operation, String resource, Long qty, Date date );

}
